package com.tiancheng.trade.settlement.controller.admin;

import com.tiancheng.trade.commom.core.data.Result;
import com.tiancheng.trade.settlement.exception.BusinessException;
import com.tiancheng.trade.settlement.service.settlement.IScenarioRevenueCostService;
import com.tiancheng.trade.settlement.vo.settlement.admin.ScenarioRevenueCostVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 场景收入成本报表
 *
 * @author dell
 */

/**
 *
 * @author dell
 *
 */
@RestController
@RequestMapping("/admin/scenario/bill")
public class ScenarioRevenueCostController {
    @Autowired
    private IScenarioRevenueCostService service;

    @GetMapping("/query")
    public Result query(ScenarioRevenueCostVO vo) throws BusinessException {
        return Result.success(service.query(vo));
    }
}
